package rim;

import javax.persistence.ManyToOne;

/**
 * Definition of ControlAct:
 * 
 * An act representing a change to the state of another class, a user event
 * (e.g. query), or a system event (e.g. time-based occurrences).
 * 
 * 的行为，代表了另一个类，用户事件（如查询），或一个系统事件（例如基于时间的事件）的状态的变化。
 * 
 * 
 * UsageNotes:
 * 
 * This class corresponds to the concept of 'Trigger Event', and as such, must
 * be present as the focus of every messaging interaction (because of the 1..1
 * association between a trigger event and an interaction.) However, control
 * acts can also appear within a message payload. For example, a set of control
 * acts associated with a Lab Order identifying the events that have occurred
 * against that order (first created, then revised, then suspended, then
 * resumed, then completed.)
 * 
 * 这个类对应的“触发事件”的概念，正因为如此，必须为每一个消息交互的焦点（因为1
 * ..1之间的触发事件和互动的关系。）然而，控制行为也可以出现在消息的有效载荷
 * 。例如，一组控制行为与一个实验室找出反对该命令首先创建，然后修改，然后暂停，然后恢复，然后完成。发生的事件令
 * 
 * 
 * Examples:
 * 
 * Discharging a patient (Encounter from Active to Completed);
 * 
 * Stopping a medication (SubstanceAdministration from Active to Aborted);
 * 
 * Sending an end-of-day summary (time-based event).
 * 
 * 放电病人（从Active遇到完成）;
 * 
 * 停止服药（SubstanceAdministration从Active中止）;
 * 
 * 发送结束摘要（基于时间的事件）。
 * 
 * @author Obama
 * 
 */
public class ControlAct extends Act {
	private static final long serialVersionUID = 1L;
	@ManyToOne
	private Message payload;
	private QueryEvent queryEvent;
}
